import { constantRoutes } from '@/router'
export default {
  namespaced: true,
  state() {
    return {
      routes: constantRoutes
    }
  },
  mutations: {
    setRoutes(state, resRoutes) {
      // 每次进来，都是重新核算的路由routes
      state.routes = [...constantRoutes, ...resRoutes]
    }
  },
  actions: {},
  getters: {}
}
